<?php header("Content-Type: text/html; charset=utf-8"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<?php 
$this->load->view("commons/cssImports");
$this->load->view("commons/javascriptImports");
$this->load->helper('url');
$this->lang->load('nob_menu', $this->session->userdata('lg'))
?>
<title>	
<?php if (isset($title)){?>
<?php if(isset ($title["race"])){ ?><?php echo $this->lang->line($title["race"]); ?>&nbsp;-&nbsp;<?php }?>
<?php if(isset ($title["title"])){ ?><?php echo $this->lang->line($title["title"]); ?>&nbsp;-&nbsp;<?php }?>
<?php if(isset ($title["date"])){ ?><?php echo $this->lang->line($title["date"]);  ?><?php }?>
<?php } ?>
</title>
<!--[if !IE 7]>
	<style type="text/css">
		#wrap {display:table;height:100%}
	</style>
<![endif]-->
</head>
<body>
<div id="wrap">
		<?php if (isset($title) && (isset ($title["race"]) || isset ($title["title"]) || isset ($title["date"])) ){?>
			<div class="title">
				<?php if(isset ($title["race"])){ ?><div id="race"><?php echo $this->lang->line($title["race"]); ?></div><?php }?>
				<?php if(isset ($title["title"])){ ?><div id="title"><?php echo $this->lang->line($title["title"]); ?></div><?php }?>
				<?php if(isset ($title["date"])){ ?><div id="date"><?php echo $this->lang->line($title["date"]);  ?></div><?php }?>
				<ul id="langbar">
					<li><a href="<?php echo current_url();?>?lg=fr">fr<img src="/nobressart/images/icons/flags/Belgium.png" width="30px" alt="be" title="Français"/></a></li>
					<li><a href="<?php echo current_url();?>?lg=nl">nl<img src="/nobressart/images/icons/flags/Belgium.png" width="30px" alt="nl" title="Nederlands"/></a></li>
					<li><a href="<?php echo current_url();?>?lg=lb"><img src="/nobressart/images/icons/flags/Luxembourg.png" width="30px" alt="lb" title="Lëtzebuergesch"/></a></li>
					<li><a href="<?php echo current_url();?>?lg=fr"><img src="/nobressart/images/icons/flags/France.png" width="30px" alt="fr" title="Français"/></a></li>
					<li><a href="<?php echo current_url();?>?lg=nl"><img src="/nobressart/images/icons/flags/Netherlands.png" width="30px" alt="nl" title="Nederlands"/></a></li>
					<li><a href="<?php echo current_url();?>?lg=de"><img src="/nobressart/images/icons/flags/Germany.png" width="30px" alt="de" title="Deutsch"/></a></li>
				</ul>
			</div>
		<?php } ?>
		<?php 
			if(isset($menu)){?>
	<div id="menu">
		<ul id="menuId" class="sf-menu">
			<?php foreach($menu as $link=>$url){?>
			<li><?php if(is_array($url)){?> <a href="#"><?php echo $this->lang->line($link);?> </a>
				<ul>
					<?php foreach($url as $subLink=>$subUrl){?>
					<li><a href="<?php echo $subUrl;?>"><?php echo $this->lang->line($subLink);?> </a>
					</li>
					<?php }?>
				</ul> <?php } else { ?> <a href="<?php echo $url;?>"><?php echo $this->lang->line($link);?>
			</a> <?php }?>
			</li>
			<?php }?>
			
		</ul>
	</div>
	<?php }?>
	<div id="body">
